<?php 
	require_once("models/config.php");
	require_once("ui.php");
	require_once("stats/db.php");
?>

<?php if(!isUserLoggedIn()) {
	header ("location: login.php");
	die();
}

	global $loggedInUser;
?>
		
<?php printPageHead(null, null); ?>

	<?php printNavigationBar('index', NAVIGATION_ITEM_USERS) ?>		
		
		<div id="content" class="container_16 clearfix">
			<div class="grid_16">
				<?php 
					$usersStats = new UserStatsList();
					$usersStats->loadStats();
					
					printUserList($usersStats->users);
				 ?>
			</div>
		</div>

<?php printPageFoot(); ?>
